package com.sctvcloud.dongqu.ui.adapter.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.dongqu.R;
import com.sctvcloud.dongqu.ui.util.IListShowData;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 民生爆料
 */
public class GovLivelihoodHolder extends BaseAbsHolder<IListShowData> implements View.OnClickListener {

    @BindView(R.id.live_li_layout)
    protected RelativeLayout live_li_layout;

    private OnGovLivelihoodClickistener livelihoodClickistener;
    private IListShowData item;

    public GovLivelihoodHolder(Context context, View itemView ,OnGovLivelihoodClickistener livelihoodClickistener) {
        super(context, itemView);
        itemView.setOnClickListener(this);
        this.livelihoodClickistener = livelihoodClickistener;
        live_li_layout.setOnClickListener(this);
    }

    @Override
    protected void initInject() {
        ButterKnife.bind(this, itemView);
    }

    @Override
    public void setData(IListShowData item) {
        this.item = item;

    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.live_li_layout) {
            if (livelihoodClickistener != null) {
                livelihoodClickistener.OnGovLiveliClick();
            }
        }

    }

    public interface OnGovLivelihoodClickistener{
        void OnGovLiveliClick();
    }

}
